/* Copyright 2008. All rights reserved. */
package org.bling.parser.tags;

import org.bling.parser.BlingParserException;
import org.eclipse.swt.widgets.Widget;

/**
 * Changes the title of the parent Shell
 * 
 * @author DISBROB
 * 
 */
public class TitleTag extends Tag {

	@Override
	public int doStartTag() throws BlingParserException {
		super.doStartTag();

		return EVAL_PAGE;
	}

	@Override
	public int doAfterBody() throws BlingParserException {
		super.doAfterBody();

		context.getShell().setText(bodyContent);

		return EVAL_PAGE;
	}

	@Override
	public Widget getWidget() throws BlingParserException {
		return null;
	}

}
